class SchmuckCommandManager(object):
	def __init__(self, client):
		self.client = client

	def run_command(self, command):
		global schmuck_commands

		if(command[0] != '/'):
			return command

		if(command[0:1] == "//"):
			return command[1:]

		args = command[1:].split(' ')
		cmd = args[0]
		args = args[1:]
		
		if(cmd in schmuck_commands):
			try:
				schmuck_commands[cmd].run_command(self.client, cmd, args)
				return False
			except Exception, ex:
				print ex
				return False

		return command[1:]
